package com.tcm.service;

import com.tcm.entity.LearningTime;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tcm.entity.vo.LearningTimeStatisticResp;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author Guqier
* @description 针对表【ts_learning_time(学生每日学习时长记录表)】的数据库操作Service
* @createDate 2023-08-23 18:11:01
*/
public interface LearningTimeService extends IService<LearningTime> {

    @Transactional
    boolean saveStuLearningTime(Integer seconds, Long currUserId);

    LearningTimeStatisticResp getLearningTimeOfWeek(Long currUserId);

    LearningTimeStatisticResp getLearningTimeOfMonth(Long currUserId);

    LearningTimeStatisticResp getLearningTimeResp(Long currUserId, Integer dayNum);

    List<LearningTime> getLearningTimeListByRange(String account, Integer dayNum);
}
